const server = require('server')
const options = require('./options')
const middlewares = require('./middlewares')
const routes = require('./routes')

server(options, middlewares, routes,).then(ctx => {
  console.log(`Server launched on http://localhost:${ctx.options.port}/`)
})
